﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LibFriesland_Campina_CRM;

public partial class UserControls_UCHeader : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BizAccount account = (BizAccount)Session["account"];
            lbUsername.Text = "Chào " + account.username;
        }
    }
    protected void lbtnLogout_Click(object sender, EventArgs e)
    {
        //Logout
        Session["account"] = null;
        Response.Redirect("login.aspx");
    }
}